package com.soccertgc.core.game.events
{
	import com.soccertgc.core.game.Game;
	
	public class GameNextTurnEvent extends GameEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _turn:int;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		/**
		 * Creates a new GameNextTurnEvent
		 * @param g Game that dispatch the event
		 * @param t index of the new turn of the game
		 * @param p Flag that signals if the turn has been passed by timeout
		 */		
		public function GameNextTurnEvent(g:Game, t:int/*, p:Boolean*/)
		{
			super(GameEvent.EVENT_GAME_NEXT_TURN, g);
			// Init
			_turn = t;
		}

		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get turn():int
		{
			return _turn;
		}

	}
}